package com.java2404.micro.common.entity;

import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.math.BigDecimal;

/**
 * @author Zeka
 * @title: Consumer
 * @projectName mall-system
 * @description: 消费者实体类
 * @date 2025/01/06  19:30
 */
@ApiModel(value = "消费者")
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class Consumer {
    private Integer cid;     // 消费者ID
    private Integer uid;     // 外键，关联 t_user 表的 uid
    private String cname;    // 消费者姓名
    private BigDecimal balance;  // 账户余额，使用 BigDecimal 类型
}
